package com.dating.view;

import android.content.Context;
import android.view.LayoutInflater;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.dating.activity.R;

public class DtTextView extends LinearLayout{
	TextView tv_text,tv_properties;
	LinearLayout layout_text;
	
	LayoutInflater inflater=null;
	public DtTextView(Context context) {
		super(context);
		inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		inflater.inflate(R.layout.item_textview, this);
		
		layout_text=(LinearLayout)findViewById(R.id.layout_text);
		tv_text=(TextView)findViewById(R.id.tv_text);
		tv_properties=(TextView)findViewById(R.id.tv_properties);
	}
	public void setText(String text){
		tv_text.setText(text);
	}
	public TextView getTextView(){
		return tv_text;
	}
	public TextView getTvProperties(){
		return tv_properties;
	}
	public String getText(){
		return tv_text.getText().toString();
	}
	public void setProperties(String properties){
		tv_properties.setText(properties);
	}
	public String getProperties(){
		return tv_properties.getText().toString();
	}
}
